/*
Copyright Polyakov Mark (qshadowp) 2012.
GNU GPLv3
*/
 
 package system.apps;
 
 import system.staros.ablock1.*;
 import java.lang.*;
 
  public class libloader extends AppBase {
 	
 	int task_id;	

 	public void run () {
		println ("You can't run <libloader> in the background");
 	}
 	public String getVersion(){
	// get LibLoader class version
	return LibLoader.getVersion();
	}
 	public int main ( String args[] ) {

 		if (args.length==1){
		if (args[0].equalsIgnoreCase("-h")){	
		System.out.println(" - LibLoader  "+getVersion()+" -");
		System.out.println(" - Flags: -");
		System.out.println("  -h : Help");
		System.out.println("  -rl : Reload");
		System.out.println("  -ver : Returns version");
		}
		if (args[0].equalsIgnoreCase("-rl")){
			System.out.println("Reloading LibLoader...");
		new LibLoader();
		
		}
		if (args[0].equalsIgnoreCase("-ver")){
		System.out.println("Current LibLoader version: "+getVersion());
		}
		
		} else System.out.println("Unknown arguments. Type libloader -h for help");
		return 0;
 	}
 	
 }